﻿import php.db.Object;

class Item extends Object {
	static var TABLE_NAME = "items";
	
	public var id: Int;
	public var name: String;
	public var link: String;
	public var description: String;
	public var date: String;
	public var author: String;
	public var category: String;
	
	
	public static var manager = new ItemManager(Item);

	public function new(name: String, link: String, description: String, date: String, ?author: String, ?category:String) {
		super();
		this.name = name;
		this.link = link;
		this.description = description;
		this.date = date;
		this.author = author;
		this.category = category;
	}
	public function setAuthor(author:String)
	{
		this.author = author;
	}
	public function setCategory(category:String)
	{
		this.category = category;
	}
	
}